/**
  ETFDAQ Project
  \class TAYaml
  \brief a YAML user input reader
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-08-15
  \date 2024-08-15 last modified

  \copyright Copyright (c) 2024 IMP-CAS with LGPLv3 LICENSE
*/

#ifndef TAYaml_h
#define TAYaml_h

#include <string>
#include <yaml-cpp/yaml.h>

using std::string;

class TAYaml : public YAML::Node{
public:
  TAYaml();
  TAYaml(const string &file);
  TAYaml(const YAML::Node &n);
  virtual ~TAYaml();

  bool good() const{ return fIsGood; } // whether assigned or not

protected:
  bool fIsGood; // whether assigned or not
};

#endif
